#pragma once
#include "afxcmn.h"

#include "DialogOptionColor.h"
#include "DialogOptionPath.h"
#include "DialogOptionBG.h"
#include "afxwin.h"

// CDialogOption dialog

class CDialogOption : public CDialog
{
	DECLARE_DYNAMIC(CDialogOption)

public:
	CDialogOption(CWnd* pParent = NULL);   // standard constructor
	virtual ~CDialogOption();

// Dialog Data
	enum { IDD = IDD_MAINOPTION };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
public:
	CTreeCtrl m_Tree1;
public:
	HWND hwndOptionDialog;
	CDialogOptionColor DialogSetColor;
	CDialogOptionPath  DialogSetPath;
	CDialogOptionBG	   DialogSetBG;
public:
	afx_msg void OnBnClickedButton1();
public:
	afx_msg void OnNMClickTree1(NMHDR *pNMHDR, LRESULT *pResult);
public:
	afx_msg void OnTvnSelchangedTree1(NMHDR *pNMHDR, LRESULT *pResult);
public:
	CStatic m_OptionText;
public:
public:
	bool RemoveSubDialog(void);
public:
	bool ShowDialogSetColor(int x, int y, int Width, int Height);
	bool ShowDialogSetPath(int x, int y, int Width, int Height);
	bool ShowDialogSetBG(int x, int y, int Width, int Height);
public:
	bool SetTitleText(void);
public:
	CStatic m_OptionArea;
public:
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
};
